<template>
  <div class="video_page">
    <div class="video_title">{{ videoInfo.name }}</div>
    <video :src="videoInfo.url" muted autoplay loop controls></video>
  </div>
</template>
<script>

export default {
  name: "RightTitle",
  props: ['videoInfo'],
};
</script>
<style>
</style>
<style lang="scss" scoped>
.video_page {
  width: 28rem;
  height: 15.75rem;
  overflow: hidden;
  margin-right: 1.5rem;
  position: relative;
  font-size: 16px;

  .video_title {
    position: absolute;
    top: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #D9E7FF;
    width: 30rem;
    height: 1.8125rem;
    line-height: 1.8125rem;
    background: rgba(0, 0, 0, .8);
    padding-left: .625rem;
    box-sizing: border-box;
  }

  video {
    width: 100%;
    height: 100%;
  }
}
</style>
